<?php require_once 'header2.php';?> 
<div class="main">
	<div class="left_cn">
	<h2>导航菜单中文</h2>
	<form action="<?php echo current_url(); ?>" method="POST">
	<p>
	<?php
	 if(!empty($naviTits_cn)){
		foreach ($naviTits_cn as $k=>$v){
			$k++;
			echo $k.'.<input type="text" name="naviTits[]" value="'. $v .'"/><br/>';
		}
	} else{ ?>
	1.<input type="text" name="naviTits[]" value=""/><br/>
	2.<input type="text" name="naviTits[]" value=""/><br/>
	3.<input type="text" name="naviTits[]" value=""/><br/>
	4.<input type="text" name="naviTits[]" value=""/><br/>
	5.<input type="text" name="naviTits[]" value=""/><br/>
	<?php }  ?>
	</p>
	<p><h6>课程设置=>子菜单</h6>
		<?php 
		if(!empty($subNaviTits_cn)){
		foreach ($subNaviTits_cn['Course'] as $k=>$v){
			$k++;
			echo $k.'.<input type="text" name="Course[]" value="'. $v .'"/><br/>';
		}
	} else{ 
	?>
	1.<input type="text" name="Course[]" value=""/><br/>
	2.<input type="text" name="Course[]" value=""/><br/>
	3.<input type="text" name="Course[]" value=""/><br/>
	4.<input type="text" name="Course[]" value=""/><br/>
	5.<input type="text" name="Course[]" value=""/><br/>
	<?php }  ?>
	</p>
		<p><h6>汉语知识=>子菜单</h6>
		<?php 
		if(!empty($subNaviTits_cn)){
		foreach ($subNaviTits_cn['Knowledge'] as $k=>$v){
			$k++;
			echo $k.'.<input type="text" name="Knowledge[]" value="'. $v .'"/><br/>';
		}
	} else{ 
	?>
	1.<input type="text" name="Knowledge[]" value=""/><br/>
	2.<input type="text" name="Knowledge[]" value=""/><br/>
	3.<input type="text" name="Knowledge[]" value=""/><br/>
	4.<input type="text" name="Knowledge[]" value=""/><br/> 
	<?php }  ?>
		</p>
	<p>
	<p ><input type="submit" name="cn" value="更新数据库"/><a href="#" onclick="updateCache('cn','navi');">更新缓存</a></p>
	</form>
	</div>
	<div class="left_en">
		<h2>导航菜单English</h2>
		<form action="<?php echo current_url(); ?>" method="POST">
		<p>
		<?php
		 if(!empty($naviTits_en)){
			foreach ($naviTits_en as $k=>$v){
				$k++;
				echo $k.'.<input type="text" name="naviTits[]" value="'. $v .'"/><br/>';
			}
		} else{ ?>
		1.<input type="text" name="naviTits[]" value=""/><br/>
		2.<input type="text" name="naviTits[]" value=""/><br/>
		3.<input type="text" name="naviTits[]" value=""/><br/>
		4.<input type="text" name="naviTits[]" value=""/><br/>
		5.<input type="text" name="naviTits[]" value=""/><br/>
		<?php } 
		 ?>
		</p>
		<p><h6>课程设置=>子菜单</h6>
			<?php 
			if(!empty($subNaviTits_en)){
			foreach ($subNaviTits_en['Course'] as $k=>$v){
				$k++;
				echo $k.'.<input type="text" name="Course[]" value="'. $v .'"/><br/>';
			}
		} else{ 
		?>
		1.<input type="text" name="Course[]" value=""/><br/>
		2.<input type="text" name="Course[]" value=""/><br/>
		3.<input type="text" name="Course[]" value=""/><br/>
		4.<input type="text" name="Course[]" value=""/><br/>
		5.<input type="text" name="Course[]" value=""/><br/>
		<?php }  ?>
		</p>
			<p><h6>汉语知识=>子菜单</h6>
			<?php 
			if(!empty($subNaviTits_en)){
			foreach ($subNaviTits_en['Knowledge'] as $k=>$v){
				$k++;
				echo $k.'.<input type="text" name="Knowledge[]" value="'. $v .'"/><br/>';
			}
		} else{ 
		?>
		1.<input type="text" name="Knowledge[]" value=""/><br/>
		2.<input type="text" name="Knowledge[]" value=""/><br/>
		3.<input type="text" name="Knowledge[]" value=""/><br/>
		4.<input type="text" name="Knowledge[]" value=""/><br/> 
		<?php }  ?>
			</p>
		<p>
		<p><input type="hidden" name="module" value="navi"/>
		<input type="submit" name="en" value="更新数据库"/><a href="#" onclick="updateCache('en','navi');">更新缓存</a></p>
		</form>
	</div>
 
</div>
<?php require_once 'footer2.php';?> 